﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PearTunes.Model
{
    /// <summary>
    /// Database model for albums
    /// </summary>
    [DataContract]
    public class Album
    {
        /// <summary>
        /// Unique ID for albums
        /// </summary>
        [DataMember]
        public int AlbumId { get; set; }
        /// <summary>
        /// Title of the album
        /// </summary>
        [DataMember]
        public string Title { get; set; }
        /// <summary>
        /// Publication year of the album
        /// </summary>
        [DataMember]
        public int Year { get; set; }
        /// <summary>
        /// Path to the album art image
        /// </summary>
        [DataMember]
        public string AlbumArtPath { get; set; }
        /// <summary>
        /// Track collection of the album
        /// </summary>
        [DataMember]
        public List<Track> Tracks { get; set; } 
        /// <summary>
        /// Price of the Album
        /// </summary>
        [DataMember]
        public int Price { get; set; }
    }
}
